<?php



class Action
{
 

	
	function index(){

		echo 'hello world!';
		$info = _GET();
		print_r($info);
		//$data = _model('test')->getList('order by id desc',new Pager(10));
		//$this->view->assign($data);
		//$this->view->display('vip.html');
	}


	function insert(){
	
		$info = _POST('info', array());
		if(empty($info['text'])){
			$this->msg('插入错误','');
		}
		_model('test')->create(array('text'=>$info['text']));
		
	}

}
	


?>
